package com.zhoug.zmuidemo;

import com.zhoug.zmui.dialog.menu.Menu;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

/**
 * @Author 35574
 * @Date 2020/8/3
 * @Description
 */
public class MyMenu implements Menu {
    private String code;
    private String name;
    private boolean selected=false;
    private List<MyMenu> child;
    public MyMenu(String code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public boolean isSelected() {
        return selected;
    }

    @Override
    public void setSelected(boolean selected) {
        this.selected=selected;
    }


    @Override
    public List<? extends Menu> getChild() {


        return child;
    }

    public void setChild(List<MyMenu> child) {
        this.child = child;
    }

}
